import http from '../http';

//table 分页列表
export function navigation5List(params) {
    return http({
        url: '/employee/list',
        method: "post",
        params: params
    })
}

//table 新增/修改
export function navigation5AddEdit(data) {
    return http({
        url: '/employee/save',
        method: "post",
        data: data
    })
}

//table 删除
export function navigation5Del(params) {
    return http({
        url: '/employee/delete',
        method: "post",
        params: params
    })
}

//employeeExperience
export function employeeExperience(params) {
    return http({
        url: '/employeeExperience/all',
        method: "post",
        params: params
    })
}

//employeeExperienceSave
export function employeeExperienceSave(data) {
    return http({
        url: '/employeeExperience/save',
        method: "post",
        data: data
    })
}

export function employeeExperienceDelete(data) {
    return http({
        url: '/employeeExperience/delete',
        method: "post",
        data: data
    })
}

//employeeBackground
export function employeeBackground(params) {
    return http({
        url: '/employeeBackground/all',
        method: "post",
        params: params
    })
}
export function employeeBackgroundDelete(params) {
    return http({
        url: '/employeeBackground/delete',
        method: "post",
        data: params
    })
}

//employeeBackgroundSave
export function employeeBackgroundSave(data) {
    return http({
        url: '/employeeBackground/save',
        method: "post",
        data: data
    })
}

export function employeePositionList(data) {
    return http({
        url: '/employeePosition/all',
        method: "post",
        params: data
    })
}

export function employeePositionSave(data) {
    return http({
        url: '/employeePosition/save',
        method: "post",
        data: data
    })
}

export function employeePositionDelete(data) {
    return http({
        url: '/employeePosition/delete',
        method: "post",
        data: data
    })
}

export function positionAll(data) {
    return http({
        url: '/position/all',
        method: "post",
        data: data
    })
}

//获取角色
export function getRoleListOnUserId(data) {
    return http({
        url: '/role/getRoleListOnUserId',
        method: "post",
        data: data
    })
}
//获取所有角色
export function roleAll(data) {
    return http({
        url: '/role/all',
        method: "post",
        params: data
    })
}
//用户角色添加
export function userRolesAdded(data) {
    return http({
        url: '/userRole/save',
        method: "post",
        data: data
    })
}
//角色删除
export function userRoleDelete(data) {
    return http({
        url: '/userRole/delete',
        method: "post",
        data: data
    })
}

